﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MVCT2.Controllers
{
    public class DefaultController : Controller
    {
        // GET: Default
        public ActionResult Index()
        {

            var mod = new Models.MVCmodels();
            mod.Age = 18;
            mod.Name = "五柳先生";
            ViewBag.aaa = "Welcome to ASP.NET MVC!!";
            TempData["msg"] = mod;

            return View();
        }

        public ActionResult demo()
        {

            ViewBag.bb = "你点你马呢？";
            return View();
        }
    }
}